package com.da.demo.security.captcha;

import cn.hutool.captcha.generator.CodeGenerator;

import java.util.Random;

/**
 * @Author: hyacinth
 * @CreateTime: 2025-02-24
 * @Version: 1.0
 */

public class MyCodeGenerator implements CodeGenerator {
    @Override
    public String generate()                                {
        int code = 1000 + new Random().nextInt(9000); // 0 - 8999 => [1000 , 9999]
        return String.valueOf(code);
    }

    @Override
    public boolean verify(String s, String s1) {
        return false;
    }
}
